package com.wlb365.admin.modules.monitor.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wlb365.admin.modules.monitor.entity.MonitorInfoError;
import com.wlb365.admin.modules.monitor.mapper.MonitorInfoErrorMapper;
import com.wlb365.admin.modules.monitor.service.MonitorInfoErrorService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 异常监控信息 服务实现类
 * </p>
 *
 * @author
 * @since 2021-01-27 13:18:17
 */
@Service
public class MonitorInfoErrorServiceImpl extends ServiceImpl
        <MonitorInfoErrorMapper, MonitorInfoError> implements MonitorInfoErrorService {

    @Override
    public Page<MonitorInfoError> listInfoErrorPage(MonitorInfoError infoError) {
        Page<MonitorInfoError> page = new Page<>(infoError.getCurrent(), infoError.getSize());
        List<MonitorInfoError> infoErrors = baseMapper.selectInfoErrorList(infoError, page);
        return page.setRecords(infoErrors);
    }

}
